package com.wuzhiming.istudy.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:zhimingw
 * @Version 1.0
 * @since 2021/5/30 18:08
 */
@Data
public class Statistics implements Serializable {

    private static final long serialVersionUID = 686994831199584266L;

    /**
     * 主键ID
     */
    private Integer id;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 访问次数
     */
    private Integer requestCount;

    /**
     * 日期
     */
    private Date requestDate;

    /**
     * 访问的文章id。如果为-1表示访问主页
     */
    private Integer courseId;

    public Statistics() {
    }

    public Statistics(String ip, Integer requestCount, Date requestDate, Integer courseId) {
        this.ip = ip;
        this.requestCount = requestCount;
        this.requestDate = requestDate;
        this.courseId = courseId;
    }
}

